package sm.validate.main;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import sm.validate.JoinValidatorImpl;
import sm.validate.api.JoinValidator;

public class ValidateJoinMain {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		if (args.length == 1) {
			String contextFile = args[0].trim();
			ApplicationContext context = new ClassPathXmlApplicationContext(
					contextFile);

			JoinValidator joinValidator = new JoinValidatorImpl(context);
			joinValidator.validateJoin();
		}

	}
}
